Package com.fwdekker.randomness

Contains classes shared by all sub-packages.

Types

Link copied to clipboard
class Cache<K, V>(creator: (K) -> V)

A simple thread-safe cache of objects.

Link copied to clipboard
enum CapitalizationMode : Enum<CapitalizationMode>

A mode in which a word should be capitalized.

Link copied to clipboard
class DataGenerationException(message: String? = null, cause: Throwable? = null) : Exception

Thrown if a random datum could not be generated.

Link copied to clipboard
abstract class DataGroupAction(icon: Icon = RandomnessIcons.Data.Base) : ActionGroup

A group of actions for a particular type of random data that can be generated.

Link copied to clipboard
abstract class DataInsertAction(icon: Icon) : AnAction

Inserts randomly generated strings at the event's editor's carets.

Link copied to clipboard
abstract class DataInsertArrayAction(    arrayScheme: () -> ArrayScheme,     dataInsertAction: DataInsertAction,     icon: Icon = RandomnessIcons.Data.Array) : DataInsertAction

Inserts randomly generated arrays of strings at the event's editor's carets.

Link copied to clipboard
abstract class DataInsertRepeatAction(dataInsertAction: DataInsertAction, icon: Icon = RandomnessIcons.Data.Array) : DataInsertAction

Inserts the same randomly generated string at the event's editor's carets.

Link copied to clipboard
abstract class DataInsertRepeatArrayAction(dataInsertArrayAction: DataInsertArrayAction, icon: Icon = RandomnessIcons.Data.Array) : DataInsertAction

Inserts the same randomly generated array of strings at the event's editor's carets.

Link copied to clipboard
abstract class DataQuickSwitchSchemeAction<T : Scheme<T>>(settings: Settings<*, T>, icon: Icon = RandomnessIcons.Data.Settings) : QuickSwitchSchemeAction

Opens a popup to allow the user to quickly switch to the selected scheme.

Link copied to clipboard
abstract class DataSettingsAction(icon: Icon = RandomnessIcons.Data.Settings) : AnAction

Opens the settings window for changing settings.

Link copied to clipboard
class DummyInsertAction(dummySupplier: (Random) -> String) : DataInsertAction

Inserts a dummy value.

Link copied to clipboard
class DummyInsertArrayAction(arrayScheme: () -> ArrayScheme = { ArraySettings.default.currentScheme }, dummySupplier: (Random) -> String) : DataInsertArrayAction

Inserts an array of dummy values.

Link copied to clipboard
class DummyInsertRepeatAction(dummySupplier: (Random) -> String) : DataInsertRepeatAction

Inserts a repeated array of dummy values.

Link copied to clipboard
class DummyInsertRepeatArrayAction(arrayScheme: () -> ArrayScheme = { ArraySettings.default.currentScheme }, dummySupplier: (Random) -> String) : DataInsertRepeatArrayAction

Inserts a repeated array of dummy values.

Link copied to clipboard
class ErrorReporter : ErrorReportSubmitter

A report submitter that opens a pre-filled issue creation form on Randomness' GitHub repository.

Link copied to clipboard
class PopupAction : AnAction

Shows a popup for all available Randomness actions.

Link copied to clipboard
class RandomnessConfigurable : Configurable

Randomness' root configurable; all other configurables are its children.

Link copied to clipboard
interface Scheme<SELF> : Scheme

A scheme is a collection of configurable values.

Link copied to clipboard
abstract class SchemesPanel<T : Scheme<T>>(val settings: Settings<*, T>) : SimpleSchemesPanel<T> , SchemesModel<T>

A panel to manage schemes with, providing a dropdown box to select schemes from and buttons to remove, rename, etc. schemes.

Link copied to clipboard
interface Settings<SELF : Any, SCHEME : Scheme<SCHEME>> : PersistentStateComponent<SELF>

Settings are composed of Schemes and persist these over IDE restarts.

Link copied to clipboard
abstract class SettingsComponent<S : Settings<S, T>, T : Scheme<T>>(settings: S) : SettingsManager<S>

A component that allows the user to edit settings and its corresponding schemes.

Link copied to clipboard
class SettingsComponentListener<S : Settings<S, T>, T : Scheme<T>>(component: SettingsComponent<S, T>) : SchemesPanel.Listener<T>

A Listener that takes events occurring in a SchemesPanel and handles them in a SettingsComponent.

Link copied to clipboard
abstract class SettingsConfigurable<S : Settings<S, T>, T : Scheme<T>> : Configurable

A configurable to change settings of type S.

Link copied to clipboard
interface SettingsManager<S : Settings<*, *>>

A SettingsManager is an object that can save and load settings.

Link copied to clipboard
data class ValidationInfo(    val message: String,     val component: JComponent? = null,     val quickFix: Runnable? = null)

Carries information on why a component has invalid input.